package com.bbx.demo.thrift.impl;

import com.bbx.demo.thrift.Message;
import com.bbx.demo.thrift.MessageService;
import com.bbx.demo.thrift.ThriftExcption;
import lombok.extern.slf4j.Slf4j;
import org.apache.thrift.TException;

@Slf4j
public class MessageServiceImpl implements MessageService.Iface {


    @Override
    public void ping() throws TException {
        log.info("PONG........................");
    }

    @Override
    public Message getMessageById(int id) throws ThriftExcption, TException {
        log.info("请求参数id[{}]", id);
        Message message = new Message().setId(001).setAge("23").setName("张三");
        return message;
    }
}
